package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.CreateAssistCalculateDepartmentDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.UpdateAssistCalculateDepartmentDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateDepartment;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateDepartmentVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateDepartmentVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateDepartmentConvertor {

    AssistCalculateDepartmentConvertor INSTANCE = Mappers.getMapper(AssistCalculateDepartmentConvertor.class);

    AssistCalculateDepartment convertDTOToEntity(CreateAssistCalculateDepartmentDTO dto);

    AssistCalculateDepartment convertDTOToEntity(UpdateAssistCalculateDepartmentDTO dto);

    List<ListAssistCalculateDepartmentVO> convertEntityToVO(List<AssistCalculateDepartment> entities);

    GetAssistCalculateDepartmentVO convertEntityToVO(AssistCalculateDepartment entity);
}
